package com.cwl.base.day04.date;

import java.util.Date;

/**
 * @program: java_base
 * @description:
 * @author: ChenWenLong
 * @create: 2019-11-08 10:43
 **/
public class TestDate {

    public static void main(String[] args) {
        Date d = new Date();
        long t = System.currentTimeMillis();
        System.out.println(t);
        Date d2 = new Date(1000);

        System.out.println(d2.toGMTString());   //不建议使用
        d2.setTime(24324324);
        System.out.println(d2.getTime());
        System.out.println(d.getTime()<d2.getTime());


    }
}
